package blog.controller.vo;

import blog.entity.Comment;
import blog.entity.UserInfo;
import blog.service.CommentService;
import blog.service.UserInfoService;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * 每一条评论的视图对象，用于返回给前端，经常以 List<CommentDetailVo> 的方式返回给前端
 */

@ApiModel(value="CommentDetail视图对象", description="")
public class CommentDetailVo {

    @ApiModelProperty(value = "自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "关联blog_id")
    private Integer blogId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "评论时间")
    private Date createTime;

    //get方法
    public Integer getId() {
        return id;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public String getContent() {
        return content;
    }

    public String getNickName() {
        return nickName;
    }

    public String getEmail() {
        return email;
    }

    public Date getCreateTime() {
        return createTime;
    }

    //set方法
    public void setId(Integer id) {
        this.id = id;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
